package com.healer.springcloud.pojo;


import java.io.Serializable;

public class Department implements Serializable {
    Long deptNum;//主键
    String deptName;
//    判断这个数据是存在哪个数据库的字段，微服务，一个服务对应一个数据库，同一个信息可能存在不同的数据库
    String dbSource;
    public Department(){}

    public Department(String deptName) {
        this.deptName = deptName;
    }

    public Department(Long deptNum, String deptName, String dbSource) {
        this.deptNum = deptNum;
        this.deptName = deptName;
        this.dbSource = dbSource;
    }

    public Long getDeptNum() {
        return deptNum;
    }

    public void setDeptNum(Long deptNum) {
        this.deptNum = deptNum;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDbSource() {
        return dbSource;
    }

    public void setDbSource(String dbSource) {
        this.dbSource = dbSource;
    }

    @Override
    public String toString() {
        return "department{" +
                "deptNum=" + deptNum +
                ", deptName='" + deptName + '\'' +
                ", dbSource='" + dbSource + '\'' +
                '}';
    }
}
